# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: inkyu

import sys

from slackclient import SlackClient

token = 'xoxb-95415286342-Ri43thLnJimEWuQnIK0oBOkR'
sc = SlackClient(token)

lines = []
for line in sys.stdin:
  lines.append(line)

message = '```%s```' % ''.join(lines)
res = sc.api_call('chat.postMessage',
                  channel='#arb-positions',
                  text=message,
                  icon_emoji=':suzy:',
                  username='suzy')
print(res)
